/*
 * Copyright 2007 Xplayat, S.L. All rights reserved.
 * Propiedad de Xplayat. 
 */
package facelets.component;

import org.apache.myfaces.custom.column.HtmlSimpleColumn;


import com.sun.facelets.FaceletContext;
import com.sun.facelets.tag.jsf.ComponentConfig;

/**
 * @author nachoe
 *
 */
public class ActionColumnComponentHandler extends ColumnComponentHandler {
	
	
	public ActionColumnComponentHandler(ComponentConfig tagConfig) {
		super(tagConfig);
	}
	
	/* (non-Javadoc)
	 * @see com.sun.facelets.tag.MetaTagHandler#setAttributes(com.sun.facelets.FaceletContext, java.lang.Object)
	 */
	public void setAttributes(FaceletContext ctx, Object instance) {
		HtmlSimpleColumn col = (HtmlSimpleColumn) instance;
		if ( getAttribute("styleClass") == null )
			col.setStyleClass("actionColumn");
		
		super.setAttributes(ctx, instance);
	}
}
